# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-aiohttp-debugtoolbar
_pkgname=aiohttp-debugtoolbar
pkgver=0.6.0
pkgrel=5
pkgdesc="A library for debugtoolbar support for aiohttp"
url="https://github.com/aio-libs/aiohttp-debugtoolbar"
arch="noarch"
license="Apache-2.0"
depends="py3-aiohttp py3-aiohttp-jinja2 python3"
makedepends="py3-setuptools"
checkdepends="
	py3-pytest
	py3-pytest-aiohttp
	py3-pytest-asyncio
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/aio-libs/aiohttp-debugtoolbar/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
options="!check" # deprecation warnings

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH=build/lib pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
a842fedfbb6bd5bae9baab8ab6c36fe352075f9312c4836a4c33c87909143c62e389a529128096e0e27b23d595eae7eb80a1f0becdf0d71d122378457b144267  py3-aiohttp-debugtoolbar-0.6.0.tar.gz
"
